FROM java:8

MAINTAINER Guo Shuai

# setting time zone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
 
# Add the service itself
ARG JAR_FILE

COPY ${JAR_FILE} /usr/local/myapp.jar

EXPOSE 8900

ENTRYPOINT ["sh","-c","java -jar /usr/local/myapp.jar"]